package com.hyt.it.ogt.ykcj.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hyt.it.ogt.ykcj.service.grade.IGradeAnalysisDataService;
import com.hyt.it.ogt.ykcj.service.grade.IServantExamineeInfoService;

/**
 * @Author chentb
 * @Date 2021/6/24 17:16
 */

@Component
public class AnalysisDataTask implements ScheduledOfTask {
    private Logger log = LoggerFactory.getLogger(getClass());

    @Autowired
    private IGradeAnalysisDataService gradeAnalysisDataService;

    @Autowired
    private IServantExamineeInfoService servantExamineeInfoService;

    @Override
    public void execute() {
        log.info("开始更新考生面试与合格字段");
        servantExamineeInfoService.updateInterViewAndQualifiedList();

        log.info("开始执行统计成绩分析数据任务");
        gradeAnalysisDataService.gradeDataStatistics();
    }


}